<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="f" %>
<%@ include file="prelude.jsp" %>

  <c:if test="${not empty prevPage}">
    <a class='button' href='<c:out value="${namespace}"/>?page=<c:out value="${prevPage}"/>&q=<c:out value="${q}"/>'>Prev</a>
  </c:if>
  <c:if test="${empty prevPage}">
    <b class='button disabled'><f:message key='prev'/></b>
  </c:if>
  |
  <c:if test="${not empty nextPage}">
    <a class=button href='<c:out value="${namespace}"/>?page=<c:out value="${nextPage}"/>&q=<c:out value="${q}"/>'>Next</a>
  </c:if>
  <c:if test="${empty nextPage}">
    <b class='button disabled'><f:message key='next'/></b>
  </c:if>
  <c:if test="${not empty moreButtons}">
  |
    <c:out value="${moreButtons}" escapeXml="false"/>
  </c:if>
